package net.ericaro.neojavagen.arrays;

/**
 * <b>ArrayInitializer</b> ::= "{" <{@link net .ericaro .neojavagen .arrays .VariableInitializers VariableInitializers}>? ","? "}"
 * 
 * @author eric@ericaro.net
 */
public class ArrayInitializer extends net.ericaro.neojavagen.JavaPartComposition implements net.ericaro.neojavagen.classes.VariableInitializer {
	private boolean Comma;

	private net.ericaro.neojavagen.arrays.VariableInitializers variableInitializers;

	public ArrayInitializer() {
		this.variableInitializers = null;
		this.Comma = false;
	}

	public ArrayInitializer(net.ericaro.neojavagen.arrays.VariableInitializers variableInitializers, boolean Comma) {
		super();
		this.variableInitializers = variableInitializers;
		this.Comma = Comma;
	}

	public boolean getComma() {
		return Comma;
	}

	public net.ericaro.neojavagen.arrays.VariableInitializers getVariableInitializers() {
		return variableInitializers;
	}

	public void setComma(boolean Comma) {
		this.Comma = Comma;
	}

	public void setVariableInitializers(net.ericaro.neojavagen.arrays.VariableInitializers variableInitializers) {
		this.variableInitializers = variableInitializers;
	}

	@Override
	public java.lang.String toString() {
		return print("{", variableInitializers, Comma ? "," : null, "}");
	}
}
